package com.ljy.my_study.spring.tiny.study7.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class PrintMethodInterceptor implements MethodInterceptor{

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("代理类方法开始");
		Object result=invocation.proceed();
		System.out.println("代理类方法结束");
		return result;
	}

}
